package com.wnxy.admin.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * @author hj
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "chargingstationdtos")//ES中的索引（库）
public class ChargingStationDto {

    @Id
    private Long id;

    //充电站编号
    @Field(type = FieldType.Text)
    private String chargingStationNumber;

    //充电站名称
    @Field(analyzer = "ik_max_word",type = FieldType.Text)
    private String chargingStationName;

    //充电站状态
    @Field(type = FieldType.Text)
    private String chargingStationState;

    //充电站位置
    @Field(type = FieldType.Text)
    private String chargingStationPlace;

    //充电站图片
    @Field(type = FieldType.Text)
    private String chargingStationPhoto;

    //经纬度
    @Field(type = FieldType.Text)
    private String coordinate;
}
